package cn.chinaflame.pagodas.utils;

import java.util.List;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

import cn.chinaflame.pagodas.entity.PaLightsLog;
import cn.chinaflame.pagodas.vo.LightVO;

@Mapper(uses= {LightVO.class,PaLightsLog.class})
public interface LightVO2LightLog {
	LightVO2LightLog MAPPER = Mappers.getMapper(LightVO2LightLog.class);
	
/*	@Mappings({
        @Mapping(source = "method", target = "method"),//属性名不一致映射
        @Mapping(source = "params", target = "params"),//自定义属性通过java代码映射
        @Mapping(source = "lightno", target = "lightno"),
        @Mapping(source = "result", target = "result"),
        @Mapping(source = "state", target = "state"),
        @Mapping(source = "opsort", target = "opsort"),
        @Mapping(source = "message", target = "message")
		})*/
	public PaLightsLog LightVO2LightLogs(LightVO  log);
	 
	public List<PaLightsLog> LightVO2LightLogs(List<LightVO> list);
	
}
